package cn.tedu.blog.server.controller;

import cn.tedu.blog.server.pojo.vo.CategoryDetailVO;
import cn.tedu.blog.server.pojo.vo.TagDetailVO;
import cn.tedu.blog.server.service.ICategoryService;
import cn.tedu.blog.server.service.ITagService;
import cn.tedu.blog.server.web.JsonResult;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@Api(tags = "标签模块")
@RequestMapping("/tags")
public class TagController {
    @Autowired
    ITagService tagService;
    @GetMapping("/select")
    public JsonResult select(){
        log.debug("====即将查询分类表，反馈表集合====");
        List<TagDetailVO> list=tagService.select();
        return JsonResult.ok(list);
    }
}
